/*
 * @Author: zhangfeng
 * @Date: 2023-11-30 11:52:56
 * @LastEditTime: 2024-01-05 17:14:44
 * @LastEditors: zhangfeng
 * @Description:
 * @FilePath: \manager\managersystem\src\router\index.ts
 * © 2023 张峰，All rights reserved.
 */
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';

const routes: Array<RouteRecordRaw> = [
	{
		path: '/login',
		name: 'login',
		meta: {
			requiresAuth: false,
		},
		component: () => import('../views/LoginPage.vue'),
	},
	// {
	// 	path: '/',
	// 	name: 'base',
	// 	component: () => import('../views/layout/AppLayout.vue'),
	// 	meta: {
	// 		requiresAuth: true,
	// 	},
	// children: [
	// 	{
	// 		path: '/home',
	// 		name: 'home',
	// 		component: () => import('../views/home/index.vue'),
	// 	},
	// 	{
	// 		path: '/menus',
	// 		name: 'menus',
	// 		component: () => import('../views/menu/MenuPage.vue'),
	// 	},
	// 	{
	// 		path: '/user',
	// 		name: 'user',
	// 		component: () => import('../views/user/UserPage.vue'),
	// 	},
	// 	{
	// 		path: '/role',
	// 		name: 'role',
	// 		component: () => import('../views/role/RolePage.vue'),
	// 	},
	// ],
	// 	},
];

const router = createRouter({
	history: createWebHistory(import.meta.env.BASE_URL),
	routes,
});
export default router;
